package com.blog.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class User implements Serializable {

    @Serial
    private final static long serialVersionUID = 1L;
    //用户id
    private Long id;
    //用户昵称
    private String name;
    //用户名
    private String username;
    //用户密码
    private String password;
    //用户邮箱
    private String email;
    //用户头像
    private String image;
    //用户创建时间
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    //用户更新时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}
